package com.vieewer.btdemo.view.gdmap;

import java.io.Serializable;

public class AMapLaneInfo implements Serializable {

    public int[] backgroundLane;
    public int[] frontLane;
    public int laneCount;
    public double pointLongitude;
    public double pointLatitude;
    int laneTypeId = 0;

    public AMapLaneInfo() {
    }

    public AMapLaneInfo(LaneInfo var1) {
        this.backgroundLane = var1.backLane;
        this.frontLane = var1.frontLane;
        this.laneCount = var1.laneCount;
        this.pointLatitude = var1.pointLat;
        this.pointLongitude = var1.pointLon;
    }

    public boolean isRecommended() {
        try {
            return !this.getLaneTypeIdHexString().endsWith("F");
        } catch (Throwable var1) {
            var1.printStackTrace();
            return false;
        }
    }

    /** @deprecated */
    public int getLaneTypeId() {
        return this.laneTypeId;
    }

    public void setLaneTypeId(int var1) {
        this.laneTypeId = var1;
    }

    /** @deprecated */
    public String getLaneTypeIdHexString() {
        try {
            return String.format("%1$02X", this.laneTypeId);
        } catch (Throwable var1) {
            var1.printStackTrace();
            return "";
        }
    }

    public char[] getLaneTypeIdArray() {
        try {
            return String.format("%1$02X", this.laneTypeId).toCharArray();
        } catch (Throwable var1) {
            var1.printStackTrace();
            return null;
        }
    }
}